<%@ page language="java" import="gt.service.*,java.util.*,gt.domain.*" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>客户信息修改</title>
</head>
<body>
<%		//建立企业性质，企业类型，企业资信，开户银行，客户服务对象，
		//调用其中统计方法得到其中的值填入选项中
		//这是企业性质统计如下
		QyxzService qyxzService = new QyxzService();
		ArrayList<String> countQyxz=qyxzService.getCountQyxz();
		request.setAttribute("countQyxz", countQyxz);
		//这是企业类型统计
		QylxService qylxService = new QylxService();
		ArrayList<String> countQylx=qylxService.getCountQylx();
		request.setAttribute("countQylx", countQylx);
		//这是企业资信统计
		QyzxService qyzxService = new QyzxService();
		ArrayList<String> countQyzx=qyzxService.getCountQyzx();
		request.setAttribute("countQyzx", countQyzx);
		//这是银行类型统计
		BankService bankService = new BankService();
		ArrayList<String> countBank=bankService.getCountBank();
		request.setAttribute("countBank", countBank);
		//这是客户级别统计
		KhjbService khjbService = new KhjbService();
		ArrayList<String> countKhjb=khjbService.getCountKhjb();
		request.setAttribute("countKhjb", countKhjb);



		String khxx_id=request.getParameter("khxx_id");
		System.out.print("cronous"+khxx_id);
        KhxxService khxxService = new KhxxService();
        Khxx khxx = khxxService.getKhxxById(khxx_id);
        request.setAttribute("khxx", khxx);
        
%>
<img alt="" src="/ClientManager/images/29.png">
<hr>
<form action="<%=request.getContextPath()%>/alterKhxx.do" method="post" target="right">
	<table  width="600px" border="1" cellspacing="0">
	<tr height="20px"><td align="right" valign="bottom" bgcolor="#FFCC33"><font size="3">客户编号:</font></td><td valign="bottom"><input type="hidden" name="khxx_id" value="${khxx.khxx_id}"/>${khxx.khxx_id}</td><td align="right" valign="bottom"><font size="3">客户名称:</font></td><td valign="bottom"><input type="text" name="khxx_mc" value="${khxx.khxx_mc}"/></td></tr>
	<tr height="20px"><td align="right" valign="bottom" bgcolor="#FFCC33"><font size="3">企业性质:</font></td><td valign="bottom"><select name="khxx_qyxz"><option value="">----------请选择----------</option><c:forEach items="${countQyxz}" var="allQyxz" ><c:if test="${khxx.khxx_qyxz==allQyxz}"><option value="${allQyxz}" selected="selected">${allQyxz}</option></c:if><c:if test="${khxx.khxx_qyxz!='allQyxz'}"><option value="${allQyxz}">${allQyxz}</option></c:if></c:forEach></select></td><td align="right" valign="bottom"><font size="3">企业类型:</font></td><td valign="bottom"><select name="khxx_qylx"><option value="">----------请选择----------</option><c:forEach items="${countQylx}" var="allQylx" ><c:if test="${khxx.khxx_qylx==allQylx}"><option value="${allQylx}" selected="selected">${allQylx}</option></c:if><c:if test="${khxx.khxx_qylx!='allQylx'}"><option value="${allQylx}">${allQylx}</option></c:if></c:forEach></select></td></tr>
	<tr height="20px"><td align="right" valign="bottom" bgcolor="#FFCC33"><font size="3">企业资信:</font></td><td valign="bottom"><select name="khxx_qyzx"><option value="">----------请选择----------</option><c:forEach items="${countQyzx}" var="allQyzx" ><c:if test="${khxx.khxx_qyzx==allQyzx}"><option value="${allQyzx}" selected="selected">${allQyzx}</option></c:if><c:if test="${khxx.khxx_qyzx!='allQyzx'}"><option value="${allQyzx}">${allQyzx}</option></c:if></c:forEach></select></td><td align="right" valign="bottom"><font size="3">企业地址:</font></td><td valign="bottom"><input type="text" name="khxx_qydz" value="${khxx.khxx_qydz}"/></td></tr>
	<tr height="20px"><td align="right" valign="bottom" bgcolor="#FFCC33"><font size="3">所属省份:</font></td><td valign="bottom"><input type="text" name="khxx_szsf" value="${khxx.khxx_szsf}"/></td><td align="right" valign="bottom"><font size="3">公司邮编:</font></td><td valign="bottom"><input type="text" name="khxx_gsyb" value="${khxx.khxx_gsyb}"/></td></tr>
	<tr height="20px"><td align="right" valign="bottom" bgcolor="#FFCC33"><font size="3">所属城市:</font></td><td valign="bottom"><input type="text" name="khxx_szcs" value="${khxx.khxx_szcs}"/></td><td align="right" valign="bottom"><font size="3">法人代表:</font></td><td valign="bottom"><input type="text" name="khxx_frdb" value="${khxx.khxx_frdb}"/></td></tr>
	<tr height="20px"><td align="right" valign="bottom" bgcolor="#FFCC33"><font size="3">纳税号:</font></td><td valign="bottom"><input type="text" name="khxx_nsh" value="${khxx.khxx_nsh}"/></td><td align="right" valign="bottom"><font size="3">开户银行:</font></td><td valign="bottom"><select name="khxx_khyh"><option value="">----------请选择----------</option><c:forEach items="${countBank}" var="allBank" ><c:if test="${khxx.khxx_khyh==allBank}"><option value="${allBank}" selected="selected">${allBank}</option></c:if><c:if test="${khxx.khxx_khyh!='allBank'}"><option value="${allBank}">${allBank}</option></c:if></c:forEach></select></td></tr>
	<tr height="20px"><td align="right" valign="bottom" bgcolor="#FFCC33"><font size="3">开户银行帐号:</font></td><td valign="bottom"><input type="text" name="khxx_yhzh" value="${khxx.khxx_yhzh}"/></td><td align="right" valign="bottom"><font size="3">公司网址:</font></td><td valign="bottom"><input type="text" name="khxx_gswz" value="${khxx.khxx_gswz}"/></td></tr>
	<tr height="20px"><td align="right" valign="bottom" bgcolor="#FFCC33"><font size="3">客户IC卡号:</font></td><td valign="bottom"><input type="text" name="khxx_ICcard" value="${khxx.khxx_ICcard}"/></td><td align="right" valign="bottom"><font size="3">公司电话:</font></td><td valign="bottom"><input type="text" name="khxx_gsdh" value="${khxx.khxx_gsdh}"/></td></tr>
	<tr height="20px"><td align="right" valign="bottom" bgcolor="#FFCC33"><font size="3">公司传真:</font></td><td valign="bottom"><input type="text" name="khxx_gscz" value="${khxx.khxx_gscz}"/></td><td align="right" valign="bottom"><font size="3">主要联系人:</font></td><td valign="bottom"><input type="text" name="khxx_lxr" value="${khxx.khxx_lxr}"/></td></tr>
	<tr height="20px"><td align="right" valign="bottom" bgcolor="#FFCC33"><font size="3">联系人电话:</font></td><td valign="bottom"><input type="text" name="khxx_lxrdh" value="${khxx.khxx_lxrdh}"/></td><td align="right" valign="bottom"><font size="3">客户级别:</font></td><td valign="bottom"><select name="khxx_khjb"><option value="">----------请选择----------</option><c:forEach items="${countKhjb}" var="allKhjb" ><c:if test="${khxx.khxx_khjb==allKhjb}"><option value="${allKhjb}" selected="selected">${allKhjb}</option></c:if><c:if test="${khxx.khxx_khjb!='allKhjb'}"><option value="${allKhjb}">${allKhjb}</option></c:if></c:forEach></select></td></tr>
	<tr height="20px"><td align="right" valign="bottom" bgcolor="#FFCC33"><font size="3">备注:</font></td><td valign="bottom" colspan="3"><input type="text" name="khxx_bz" value="${khxx.khxx_bz}"/></td></tr>
	
	<tr><td></td><td valign="top" colspan="3"><input style="font-size: 15px" type="submit" value="提交">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input style="font-size: 15px" type="reset" value="重置"></td></tr>
	

 </table>
</form>
</body>
</html>